package com.hoas.api.core.intf;

import java.util.Map;

import  com.hoas.api.core.entity.BusinessUser;
import  com.hoas.api.core.entity.api.BusinessApi;
import  com.hoas.api.core.exception.BusinessException;

public interface ApiListener {

	void before(BusinessUser user, BusinessApi api, Map<String, Object> parameter, Object result) throws BusinessException;

	void after(BusinessUser user, BusinessApi api, Map<String, Object> parameter, Object result) throws BusinessException;

	void exception(BusinessUser user, BusinessApi api, Map<String, Object> parameter, Exception e) throws BusinessException;

	
}
